using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region FlowerImage

	/// <summary>
	/// FlowerImage object for NHibernate mapped table 'FlowerImage'.
	/// </summary>
	public class FlowerImage
	{
		#region Member Variables
		
		protected int _id;
		protected int _sortId;
		protected int _gfId;
		protected string _flowerUrl;
		protected DateTime _addDate;

		#endregion

		#region Constructors

		public FlowerImage() { }

		public FlowerImage( int sortId, int gfId, string flowerUrl, DateTime addDate )
		{
			this._sortId = sortId;
			this._gfId = gfId;
			this._flowerUrl = flowerUrl;
			this._addDate = addDate;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual int SortId
		{
			get { return _sortId; }
			set { _sortId = value; }
		}

		public  virtual int GfId
		{
			get { return _gfId; }
			set { _gfId = value; }
		}

		public  virtual string FlowerUrl
		{
			get { return _flowerUrl; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for FlowerUrl", value, value.ToString());
				_flowerUrl = value;
			}
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		

		#endregion
	}
	#endregion
}